using UnityEngine;

public class AmbientAuidio : MonoBehaviour, ISwichSound
{
	private AudioSource audioSource;

	public void SoundOff()
	{
		audioSource.Stop();
	}

	public void SoundOn()
	{
		audioSource.Play();
	}

	private void Awake()
	{
		audioSource = GetComponent<AudioSource>();
		audioSource.loop = true;
		audioSource.volume = 0.4f;
	}
}
